package pl.edu.project.view;

import java.awt.Container;
import java.awt.MenuBar;

import javax.swing.BoxLayout;
import javax.swing.JFrame;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;

import org.jdesktop.application.Application;


/**
 * <code>FrameView</code> for a custom
 * <code>JFrame<code> {@link CalendarFrame}. This frame is not used as a base for
 * GUI controls developments since tools other then NetBeans are not able
 * to open visually instances of <code>FrameView</code> or <code>View</code>
 * class.
 * 
 */

public class MainViewFrame extends JFrame {
    

    private JMenuItem about;
    private boolean coolAlarm;
    private JMenuItem exit;
    private JMenuItem exportEvents;
    private JMenuItem filterEvents;
    private JMenuItem importEvents;
    private JMenu menu;
    private JMenuBar menuBar;
    private JMenuItem settings;
    private JMenu tools;

    public MainViewFrame(){
    	super();
    	init();
    }
    
    private void init() {
	// systemowy dzwiek alarmu
	coolAlarm = false;
	// wlasciwosci okna
	setTitle("Kalendarz");
	setDefaultCloseOperation(EXIT_ON_CLOSE);
	setLocation(300, 250);
	// menu
	menuBar = new JMenuBar();
	menu = new JMenu("Menu");
	menuBar.add(menu);
	about = new JMenuItem();
	// about.addActionListener(new ActionAbout());
	menu.add(about);
	settings = new JMenuItem("Ustawienia");
	// settings.addActionListener(new ActionSettings());
	menu.add(settings);
	exit = new JMenuItem("Wyj�cie");
	// exit.addActionListener(new ActionExit());
	menu.add(exit);
	tools = new JMenu("Narz�dzia");
	menuBar.add(tools);
	filterEvents = new JMenuItem("Filtruj");
	// filterEvents.addActionListener(new ActionFilter());
	tools.add(filterEvents);
	importEvents = new JMenuItem("Importuj");
	// importEvents.addActionListener(new ActionImport());
	tools.add(importEvents);
	exportEvents = new JMenuItem("Eksportuj");
	// exportEvents.addActionListener(new ActionExport());
	tools.add(exportEvents);
	this.rootPane.setJMenuBar(menuBar);
	// layout okna
	Container contentPane = getContentPane();
	contentPane.setLayout(new BoxLayout(contentPane, BoxLayout.Y_AXIS));

	pack();
	setResizable(false);
	setVisible(true);

    }
	public JMenuItem getAbout() {
		return about;
	}
	public void setAbout(JMenuItem about) {
		this.about = about;
	}
	public boolean isCoolAlarm() {
		return coolAlarm;
	}
	public void setCoolAlarm(boolean coolAlarm) {
		this.coolAlarm = coolAlarm;
	}
	public JMenuItem getExit() {
		return exit;
	}
	public void setExit(JMenuItem exit) {
		this.exit = exit;
	}
	public JMenuItem getExportEvents() {
		return exportEvents;
	}
	public void setExportEvents(JMenuItem exportEvents) {
		this.exportEvents = exportEvents;
	}
	public JMenuItem getFilterEvents() {
		return filterEvents;
	}
	public void setFilterEvents(JMenuItem filterEvents) {
		this.filterEvents = filterEvents;
	}
	public JMenuItem getImportEvents() {
		return importEvents;
	}
	public void setImportEvents(JMenuItem importEvents) {
		this.importEvents = importEvents;
	}
	public JMenu getMenu() {
		return menu;
	}
	public void setMenu(JMenu menu) {
		this.menu = menu;
	}

	public void setMenuBar(JMenuBar menuBar) {
		this.menuBar = menuBar;
	}
	public JMenuItem getSettings() {
		return settings;
	}
	public void setSettings(JMenuItem settings) {
		this.settings = settings;
	}
	public JMenu getTools() {
		return tools;
	}
	public void setTools(JMenu tools) {
		this.tools = tools;
	}

    
    

}
